﻿<%@ Language="C#" Inherits="System.Web.Mvc.ViewPage<DNBProject.Model.PopupPartial.TablePopupModel>" %>
<style type="text/css">
    #dropBoxContainer label {
        display: inline;
        margin-left: 10px
    }
</style>

<div style="overflow: scroll; width: 100%; height: 100%">
    <div id="dropBoxContainer" style="width: auto;margin-top:5px">
        <span><strong>Chọn tiêu chuẩn đánh giá : </strong></span>
	    <select id="selectSource" multiple="multiple">
	        <option>Chọn tất cả</option>
            <%
                foreach (var item in Model.Rows)
              {%>
                  <option><%:item.TenChat + "(" + item.DonVi + ")"%></option>
              <%} %>
	    </select>
    </div>
    <div id="chart_container" style="width: auto; height: 400px; margin: 0 auto"></div>
</div>

<div style="display: none">
    <table id="chartTable">
        <thead>
            <tr>
			    <th>Chỉ tiêu</th>
			    <th>Giá trị đo</th>
			    <th>QCVN</th>
		    </tr>
        </thead>

        <tbody>
            <% 
                foreach (var row in Model.Rows)
               {%>
                    <tr>
                        <td><%:string.Format("{0}({1})", row.TenChat,row.DonVi) %></td>
                        <td><%:row.GiaTriDo%></td>
                        <td><%:row.Qcvn%></td>
                    </tr>
               <%} %>
        </tbody>
    </table>
</div>